
const state = {
  token: '' // 共享的token
}

const mutations = {
  // 设置token
  setToken(state, newToken) {
    state.token = newToken
  },
  // 移除token
  removeToken(state) {
    state.token = ''
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

